export default {
  props: {
    to: {
      type: String,
      require: true,
    },
  },
  methods: {
    handler() {
      this.$router.push(this.to);
    },
  },
  render() {
    return <a href="javascript:;" onClick={this.handler}>{this.$slots.default}</a>; //jsx语法{}
  },
};
